package zhongbo.java.air.monitor.service;

import zhongbo.java.air.common.exception.MyException;
import zhongbo.java.air.common.vo.PageVo;
import zhongbo.java.air.monitor.model.AirAlertLog;
import zhongbo.java.air.monitor.model.FlightActivityDaily;

import java.util.List;

/**
 * 说明：
 *
 * @author 钟波dellNotebook
 * @since 2025年04月08日 星期二 04:05:30
 */
public interface IFlightActivityDailyService {

    /**
     * 查询当天分组统计结果
     *
     * @param date 某一天的日期 2025-04-08
     * @return 当天分组统计结果
     */
    List<FlightActivityDaily> selectDailyStats(String date);

    /**
     * 从数据库查询当天分组统计结果
     *
     * @param date 某一天的日期 2025-04-08
     * @return 当天分组统计结果
     */
    List<FlightActivityDaily> getDailyStats(String date);

    FlightActivityDaily addFlightActivityDaily(FlightActivityDaily flightActivityDaily)throws MyException;
    FlightActivityDaily updateFlightActivityDaily(FlightActivityDaily flightActivityDaily)throws MyException;
    void deleteFlightActivityDaily(int id)throws MyException;


    PageVo<FlightActivityDaily> page(Integer pageNumber, Integer pageSize, boolean order, String searchField, String keyword, String sortField);

    FlightActivityDaily selectFlightActivityDaily(String icao)throws MyException;
    PageVo<FlightActivityDaily> pageByIcaoCode(Integer pageNumber, Integer pageSize, String icaoCode, String startTime, String endTime, String oderByField, boolean orderByAsc, String searchField, String keyword)throws MyException;
}
